<%@page import="com.hamizhong.iflowers.utils.MyTools"%>
<%@page import="com.hamizhong.iflowers.utils.MyConstants"%>
<%@page import="com.hamizhong.iflowers.web.vo.AdminVO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//Dtd HTML 4.01 transitional//EN" "http://www.w3.org/tr/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../common/common.jsp" %>
<link href="<%=request.getContextPath() %>/css/admin/admin.css" type="text/css" rel="stylesheet">
<title>Insert title here</title>
</head>

<%
	AdminVO adminVO = (AdminVO)session.getAttribute(MyConstants.IFLOWERS_LOGIN_ADMIN_VO);
%>

<body>
	<table cellspacing=0 cellpadding=0 width="100%" align=center border=0>
		<tr height=28>
			<td background="<%=request.getContextPath() %>/images/pages/admin/title_bg1.jpg">当前位置:</td>
		</tr>
		<tr>
			<td bgcolor=#b1ceef height=1></td>
		</tr>
		<tr height=20>
			<td background="<%=request.getContextPath() %>/images/pages/admin/shadow_bg.jpg"></td>
		</tr>
	</table>
	<table cellspacing=0 cellpadding=0 width="90%" align=center border=0>
		<tr height=100>
			<td align=middle width=100><IMG height=100
				src="<%=request.getContextPath() %>/images/pages/admin/admin_p.gif" width=90>
			</td>
			<td width=60>&nbsp;</td>
			<td>
				<table height=100 cellspacing=0 cellpadding=0 width="100%" border=0>

					<tr>
						<td><p id="currentDttm"></p></td>
					</tr>
					<tr>
						<td style="font-weight: bold; font-size: 16px"><%=adminVO.getLoginName() %></td>
					</tr>
					<tr>
						<td>欢迎进入网站管理中心！</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colSpan=3 height=10></td>
		</tr>
	</table>
	<table cellspacing=0 cellpadding=0 width="95%" align=center border=0>
		<tr height=20>
			<td></td>
		</tr>
		<tr height=22>
			<td style="padding-left: 20px; font-weight: bold; color: #ffffff"
				align=middle background="<%=request.getContextPath() %>/images/pages/admin/title_bg2.jpg">您的相关信息</td>
		</tr>
		<tr bgcolor=#ecf4fc height=12>
			<td></td>
		</tr>
		<tr height=20>
			<td></td>
		</tr>
	</table>
	<table cellspacing=0 cellpadding=10 width="95%" align=center border=0>
		<tr>
			<td align=right width=100>登陆帐号：</td>
			<td style="color: #880000"><%=adminVO.getLoginName() %></td>
		</tr>
		<tr>
			<td align=right>本次登录：</td>
			<td style="color: #880000"><%=MyTools.formatDttm2YYYY_MM_DD_HH_MM_SS(adminVO.getThisLoginTime()) %></td>
		</tr>
		<tr>
			<td align=right>上次登录：</td>
			<td style="color: #880000"><%=MyTools.formatDttm2YYYY_MM_DD_HH_MM_SS(adminVO.getLastLoginTime()) %></td>
		</tr>
		<tr>
	</table>
</body>

<script type="text/javascript">
	$(function() {
		showCurrentDttm();
	});
	function showCurrentDttm() {
		var currentDttm = new Date();
		var year = currentDttm.getFullYear();
		var month = currentDttm.getMonth()+1;
		var day = currentDttm.getDate();
		var hours = currentDttm.getHours();
		var minutes = currentDttm.getMinutes();
		var seconds = currentDttm.getSeconds();
		var dttmStr = year;
		dttmStr += "-"+month;
		dttmStr += "-"+day;
		dttmStr += (hours < 10 ? " 0" : " ")+hours;
		dttmStr += (minutes < 10 ? ":0" : ":")+minutes;
		dttmStr += (seconds < 10 ? ":0" : ":")+seconds;
		$('#currentDttm').html("当前时间："+dttmStr);
		setTimeout("showCurrentDttm()", 100);
	}
</script>

</html>